package cn.stylefeng.guns.modular.business.frequency.branchtenement.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 租户网点表
 *
 * @author yujie
 * @date 2023/05/10 16:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tt_branch_tenement")
public class BranchTenement extends BaseEntity {

    /**
     * 租户号
     */
    @TableId("id")
    private Long id;

    /**
     * 状态
     */
    @TableField("del_flag")
    private Integer delFlag;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;

    /**
     * 网点名称
     */
    @TableField("branch_name")
    private String branchName;

    /**
     * 持有角色
     */
    @TableField("role_code")
    private String roleCode;

    /**
     * 是否是网点 1 否 2 是
     */
    @TableField("is_branch")
    private Integer isBranch;

  /**
     * 地址
     */
    @TableField("address")
    private String address;

    @TableField(exist = false)
    private List<String> chargeCodeList;



}
